package com.yutel.amote.packet;

import java.io.Serializable;

import com.yutel.amote.packet.Protocol.Command;

public class AbstractPacket implements Serializable {
	private static final long serialVersionUID = 1L;
	private Command command;
	private Object value;

	public AbstractPacket(Command command) {
		this.command = command;
	}

	public Command getCommand() {
		return command;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "Command:" + command + ",value:" + getValue();
	}

}
